.class public Lcom/instagram/android/d/k/o;
.super Lcom/instagram/android/d/k/n;
.source "IgStreamResponseParser.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lcom/instagram/android/d/k/n",
        "<TT;>;"
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 19
    invoke-direct {p0}, Lcom/instagram/android/d/k/n;-><init>()V

    return-void
.end method

.method private a(Lcom/instagram/android/d/k/m;Lcom/fasterxml/jackson/a/l;)V
    .locals 3
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/k/m",
            "<TT;>;",
            "Lcom/fasterxml/jackson/a/l;",
            ")V"
        }
    .end annotation

    .prologue
    .line 107
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getCurrentToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v0

    sget-object v1, Lcom/fasterxml/jackson/a/r;->b:Lcom/fasterxml/jackson/a/r;

    if-ne v0, v1, :cond_3

    .line 108
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 110
    :cond_0
    :goto_0
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v1

    sget-object v2, Lcom/fasterxml/jackson/a/r;->c:Lcom/fasterxml/jackson/a/r;

    if-eq v1, v2, :cond_2

    .line 111
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getCurrentName()Ljava/lang/String;

    move-result-object v1

    .line 112
    const-string v2, "errors"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 113
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 114
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getCurrentToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v1

    sget-object v2, Lcom/fasterxml/jackson/a/r;->m:Lcom/fasterxml/jackson/a/r;

    if-eq v1, v2, :cond_0

    .line 115
    :goto_1
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v1

    sget-object v2, Lcom/fasterxml/jackson/a/r;->e:Lcom/fasterxml/jackson/a/r;

    if-eq v1, v2, :cond_0

    .line 116
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 120
    :cond_1
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->skipChildren()Lcom/fasterxml/jackson/a/l;

    goto :goto_0

    .line 124
    :cond_2
    invoke-virtual {p1, v0}, Lcom/instagram/android/d/k/m;->b(Ljava/util/List;)V

    .line 128
    :goto_2
    return-void

    .line 126
    :cond_3
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/instagram/android/d/k/m;->a(Ljava/lang/String;)V

    goto :goto_2
.end method

.method private b(Lcom/fasterxml/jackson/a/l;)Ljava/util/List;
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/fasterxml/jackson/a/l;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/d/b/d;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v1, 0x0

    .line 131
    .line 132
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->getCurrentToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v0

    sget-object v2, Lcom/fasterxml/jackson/a/r;->m:Lcom/fasterxml/jackson/a/r;

    if-eq v0, v2, :cond_6

    move-object v0, v1

    .line 133
    :cond_0
    :goto_0
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v2

    sget-object v3, Lcom/fasterxml/jackson/a/r;->e:Lcom/fasterxml/jackson/a/r;

    if-eq v2, v3, :cond_7

    move-object v2, v1

    move-object v3, v1

    .line 136
    :cond_1
    :goto_1
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v4

    sget-object v5, Lcom/fasterxml/jackson/a/r;->c:Lcom/fasterxml/jackson/a/r;

    if-eq v4, v5, :cond_4

    .line 137
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->getCurrentName()Ljava/lang/String;

    move-result-object v4

    .line 138
    const-string v5, "key"

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 139
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 140
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v3

    goto :goto_1

    .line 141
    :cond_2
    const-string v5, "time"

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 142
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 143
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v2

    invoke-static {v2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v2

    goto :goto_1

    .line 144
    :cond_3
    if-eqz v4, :cond_1

    .line 145
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->skipChildren()Lcom/fasterxml/jackson/a/l;

    goto :goto_1

    .line 148
    :cond_4
    if-eqz v3, :cond_0

    if-eqz v2, :cond_0

    .line 149
    if-nez v0, :cond_5

    .line 150
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 152
    :cond_5
    invoke-static {v3, v2}, Lcom/instagram/android/d/b/d;->a(Ljava/lang/String;Ljava/lang/Float;)Lcom/instagram/android/d/b/d;

    move-result-object v2

    .line 153
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_6
    move-object v0, v1

    .line 157
    :cond_7
    return-object v0
.end method


# virtual methods
.method public synthetic a(Lch/boye/httpclientandroidlib/HttpResponse;)Lcom/instagram/android/d/k/h;
    .locals 1
    .parameter

    .prologue
    .line 19
    invoke-virtual {p0, p1}, Lcom/instagram/android/d/k/o;->b(Lch/boye/httpclientandroidlib/HttpResponse;)Lcom/instagram/android/d/k/m;

    move-result-object v0

    return-object v0
.end method

.method public a(Lcom/fasterxml/jackson/a/l;)Z
    .locals 1
    .parameter

    .prologue
    .line 93
    const/4 v0, 0x0

    return v0
.end method

.method public final b(Lch/boye/httpclientandroidlib/HttpResponse;)Lcom/instagram/android/d/k/m;
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lch/boye/httpclientandroidlib/HttpResponse;",
            ")",
            "Lcom/instagram/android/d/k/m",
            "<TT;>;"
        }
    .end annotation

    .prologue
    const/4 v1, 0x0

    .line 23
    new-instance v0, Lcom/instagram/android/d/k/m;

    invoke-direct {v0}, Lcom/instagram/android/d/k/m;-><init>()V

    .line 29
    :try_start_0
    invoke-virtual {p0, p1}, Lcom/instagram/android/d/k/o;->c(Lch/boye/httpclientandroidlib/HttpResponse;)V

    .line 31
    invoke-interface {p1}, Lch/boye/httpclientandroidlib/HttpResponse;->getEntity()Lch/boye/httpclientandroidlib/HttpEntity;

    move-result-object v2

    .line 32
    new-instance v3, Lcom/fasterxml/jackson/a/e;

    invoke-direct {v3}, Lcom/fasterxml/jackson/a/e;-><init>()V

    .line 33
    invoke-interface {v2}, Lch/boye/httpclientandroidlib/HttpEntity;->getContent()Ljava/io/InputStream;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v2

    .line 40
    :try_start_1
    invoke-virtual {v3, v2}, Lcom/fasterxml/jackson/a/e;->createParser(Ljava/io/InputStream;)Lcom/fasterxml/jackson/a/l;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    move-result-object v3

    .line 41
    :cond_0
    :goto_0
    :try_start_2
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v4

    sget-object v5, Lcom/fasterxml/jackson/a/r;->c:Lcom/fasterxml/jackson/a/r;

    if-eq v4, v5, :cond_6

    .line 42
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->getCurrentName()Ljava/lang/String;

    move-result-object v4

    .line 43
    const-string v5, "status"

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 44
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 45
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/instagram/android/d/k/m;->c(Ljava/lang/String;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_0

    .line 67
    :catch_0
    move-exception v0

    move-object v0, v2

    move-object v2, v3

    .line 70
    :goto_1
    invoke-static {v2}, Lcom/b/a/c/a;->a(Ljava/io/Closeable;)V

    .line 71
    invoke-static {v0}, Lcom/b/a/c/a;->a(Ljava/io/Closeable;)V

    move-object v0, v1

    .line 73
    :goto_2
    return-object v0

    .line 46
    :cond_1
    :try_start_3
    const-string v5, "message"

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 47
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 48
    invoke-direct {p0, v0, v3}, Lcom/instagram/android/d/k/o;->a(Lcom/instagram/android/d/k/m;Lcom/fasterxml/jackson/a/l;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_0

    .line 70
    :catchall_0
    move-exception v0

    :goto_3
    invoke-static {v3}, Lcom/b/a/c/a;->a(Ljava/io/Closeable;)V

    .line 71
    invoke-static {v2}, Lcom/b/a/c/a;->a(Ljava/io/Closeable;)V

    throw v0

    .line 49
    :cond_2
    :try_start_4
    const-string v5, "_messages"

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 50
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 51
    invoke-direct {p0, v3}, Lcom/instagram/android/d/k/o;->b(Lcom/fasterxml/jackson/a/l;)Ljava/util/List;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/instagram/android/d/k/m;->a(Ljava/util/List;)V

    goto :goto_0

    .line 52
    :cond_3
    const-string v5, "checkpoint_url"

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 53
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 54
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/instagram/android/d/k/m;->b(Ljava/lang/String;)V

    goto :goto_0

    .line 55
    :cond_4
    const-string v5, "error_title"

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 56
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 57
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/instagram/android/d/k/m;->d(Ljava/lang/String;)V

    goto :goto_0

    .line 58
    :cond_5
    if-eqz v4, :cond_0

    invoke-virtual {p0, v3}, Lcom/instagram/android/d/k/o;->a(Lcom/fasterxml/jackson/a/l;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 60
    invoke-virtual {v3}, Lcom/fasterxml/jackson/a/l;->skipChildren()Lcom/fasterxml/jackson/a/l;

    goto/16 :goto_0

    .line 65
    :cond_6
    invoke-virtual {p0}, Lcom/instagram/android/d/k/o;->b()Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/instagram/android/d/k/m;->a(Ljava/lang/Object;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    .line 70
    invoke-static {v3}, Lcom/b/a/c/a;->a(Ljava/io/Closeable;)V

    .line 71
    invoke-static {v2}, Lcom/b/a/c/a;->a(Ljava/io/Closeable;)V

    goto :goto_2

    .line 70
    :catchall_1
    move-exception v0

    move-object v2, v1

    move-object v3, v1

    goto :goto_3

    :catchall_2
    move-exception v0

    move-object v3, v1

    goto :goto_3

    .line 67
    :catch_1
    move-exception v0

    move-object v0, v1

    move-object v2, v1

    goto :goto_1

    :catch_2
    move-exception v0

    move-object v0, v2

    move-object v2, v1

    goto/16 :goto_1
.end method

.method public b()Ljava/lang/Object;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TT;"
        }
    .end annotation

    .prologue
    .line 170
    const/4 v0, 0x0

    return-object v0
.end method

.method public c(Lch/boye/httpclientandroidlib/HttpResponse;)V
    .locals 0
    .parameter

    .prologue
    .line 84
    return-void
.end method
